package StuManagerSystem.bean;

public class Person {
	private String number;
	private String username;
	private String password;
	private String sex;
	private Integer age;
	private Integer roleId;// 角色，0--》学生，1---》老师 ，2--》管理员

	public Person() {
		super();
	}

	public Person(String number, String username, String password, String sex, Integer age, Integer roleId) {
		super();
		this.number = number;
		this.username = username;
		this.password = password;
		this.sex = sex;
		this.age = age;
		this.roleId = roleId;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Integer getRoleId() {
		return roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}

	@Override
	public String toString() {
		return "Person [number=" + number + ", username=" + username + ", password=" + password + ", sex=" + sex
				+ ", age=" + age + ", roleId=" + roleId + "]";
	}

}
